package com.yuke.cloud.common.base.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/*
 * <p>Company: Copyright (c) 2018. yuke All Rights Reserved. </br> </p>
 * <p>Title：yuke-mall </br> </p>
 * <p>com.yuke.cloud.common.base.dto Description TODO </br> </p>
 * @Author wg
 * @Date   2019/11/16 9:37
 */
@Data
public class GroupInfoDto implements Serializable {
    private static final long serialVersionUID = -1137852221455077888L;

    private Long groupId;

    @ApiModelProperty(value="parentId上级部门ID")
    private Long parentId;


    @ApiModelProperty(value="groupCode组织（部门）编码，暂保留")
    private String groupCode;

    @ApiModelProperty(value="groupName组织（部门）名称")
    private String groupName;

    @ApiModelProperty(value="pinyinShort组织（部门）拼音简称，如总裁办简称为ZCB")
    private String pinyinShort;


    @ApiModelProperty(value="type用户类型，扩展用，0：普通用户组；1：商家用户组；3：伙伴（供应商）组；4：员工用户组；")
    private Byte type;

    @ApiModelProperty(value="description组类型，扩展用，0：普通用户组；1：员工用户组；2：伙伴（供应商）用户组")
    private String description;

    @ApiModelProperty(value="level级别")
    private Integer level;

    @ApiModelProperty(value="isLeaf是否为叶子节点，0：不是，1：是")
    private Boolean isLeaf;

    public GroupInfoDto() {
    }

    public GroupInfoDto(Long groupId, String groupName, Integer level, Long parentId) {
        this.groupId = groupId;
        this.groupName = groupName;
        this.level = level;
        this.parentId = parentId;
    }

}
